using System.Runtime.Serialization;

namespace MoneyTracking.Common
{
    [DataContract]
    public class Category
    {
        #region private members
        private int _id;
        private string _name;
        private string _description;
        private int _parentID;
        #endregion
        [DataMember]
        public int ID
        {
            get { return _id; }
            set { _id = value; }
        }

        [DataMember]
        public string Name
        {
            get { return _name; }
            set { _name = value; }
        }

        [DataMember]
        public string Description
        {
            get { return _description; }
            set { _description = value; }
        }

        [DataMember]
        public int ParentID
        {
            get { return _parentID; }
            set { _parentID = value; }
        }
    }
}